home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
AmigActive 10
/
AACD 10.iso
/
AACD
/
Magazine
/
Morphos
/
GCC
/
ppc-amigaos
/
include
/
powerup
/
ppcinline
/
lowlevel.h
< prev
next >
Wrap
C/C++ Source or Header
|
2000-02-28
|
3KB
|
85 lines
/* Automatically generated header! Do not edit! */
#ifndef _PPCINLINE_LOWLEVEL_H
#define _PPCINLINE_LOWLEVEL_H
#ifndef __PPCINLINE_MACROS_H
#include <powerup/ppcinline/macros.h>
#endif /* !__PPCINLINE_MACROS_H */
#ifndef LOWLEVEL_BASE_NAME
#define LOWLEVEL_BASE_NAME LowLevelBase
#endif /* !LOWLEVEL_BASE_NAME */
#define AddKBInt(intRoutine, intData) \
LP2(0x3c, APTR, AddKBInt, APTR, intRoutine, a0, APTR, intData, a1, \
, LOWLEVEL_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
#define AddTimerInt(intRoutine, intData) \
LP2(0x4e, APTR, AddTimerInt, APTR, intRoutine, a0, APTR, intData, a1, \
, LOWLEVEL_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
#define AddVBlankInt(intRoutine, intData) \
LP2(0x6c, APTR, AddVBlankInt, APTR, intRoutine, a0, APTR, intData, a1, \
, LOWLEVEL_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
#define ElapsedTime(context) \
LP1(0x66, ULONG, ElapsedTime, struct EClockVal *, context, a0, \
, LOWLEVEL_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
#define GetKey() \
LP0(0x30, ULONG, GetKey, \
, LOWLEVEL_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
#define GetLanguageSelection() \
LP0(0x24, UBYTE, GetLanguageSelection, \
, LOWLEVEL_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
#define QueryKeys(queryArray, arraySize) \
LP2NR(0x36, QueryKeys, struct KeyQuery *, queryArray, a0, unsigned long, arraySize, d1, \
, LOWLEVEL_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
#define ReadJoyPort(port) \
LP1(0x1e, ULONG, ReadJoyPort, unsigned long, port, d0, \
, LOWLEVEL_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
#define RemKBInt(intHandle) \
LP1NR(0x42, RemKBInt, APTR, intHandle, a1, \
, LOWLEVEL_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
#define RemTimerInt(intHandle) \
LP1NR(0x54, RemTimerInt, APTR, intHandle, a1, \
, LOWLEVEL_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
#define RemVBlankInt(intHandle) \
LP1NR(0x72, RemVBlankInt, APTR, intHandle, a1, \
, LOWLEVEL_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
#define SetJoyPortAttrsA(portNumber, tagList) \
LP2(0x84, BOOL, SetJoyPortAttrsA, unsigned long, portNumber, d0, struct TagItem *, tagList, a1, \
, LOWLEVEL_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
#ifndef NO_PPCINLINE_STDARG
#define SetJoyPortAttrs(a0, tags...) \
({ULONG _tags[] = { tags }; SetJoyPortAttrsA((a0), (struct TagItem *)_tags);})
#endif /* !NO_PPCINLINE_STDARG */
#define StartTimerInt(intHandle, timeInterval, continuous) \
LP3NR(0x60, StartTimerInt, APTR, intHandle, a1, unsigned long, timeInterval, d0, long, continuous, d1, \
, LOWLEVEL_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
#define StopTimerInt(intHandle) \
LP1NR(0x5a, StopTimerInt, APTR, intHandle, a1, \
, LOWLEVEL_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
#define SystemControlA(tagList) \
LP1(0x48, ULONG, SystemControlA, struct TagItem *, tagList, a1, \
, LOWLEVEL_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
#ifndef NO_PPCINLINE_STDARG
#define SystemControl(tags...) \
({ULONG _tags[] = { tags }; SystemControlA((struct TagItem *)_tags);})
#endif /* !NO_PPCINLINE_STDARG */
#endif /* !_PPCINLINE_LOWLEVEL_H */